package cloudgamesaumysql

import (
	"gorm.io/gorm"
	"time"
)

/*
  @author liubogeng
  @date   2025/4/1 11:06
*/

// CGGameAUEverydayWebsiteTrafficAndDownloadClickNum 云游戏每日打点数据统计和每日下载按钮点击次数统计表
type CGGameAUEverydayWebsiteTrafficAndDownloadClickNum struct {
	ID             int64          `json:"id" gorm:"column:id;type:bigint;primaryKey;autoIncrement;comment:ID"`
	MonitorType    string         `json:"monitor_type" gorm:"column:monitor_type;type:varchar(100);not null;default:'';comment:每日打点数据统计；每日下载按钮点击次数统计"`
	DeviceType     string         `json:"device_type" gorm:"column:device_type;type:varchar(50);not null;default:'';comment:1手机 2电脑"`
	IsLogin        string         `json:"is_login" gorm:"column:is_login;type:varchar(50);not null;default:'';comment:1未登录 2已登录"`
	IsUVOrPV       string         `json:"is_uv_or_pv" gorm:"column:is_uv_or_pv;type:varchar(100);not null;default:'';comment:1UV 2PV"`
	TodayHourCount string         `json:"today_hour_count" gorm:"column:today_hour_count;type:varchar(1000);not null;default:'';comment:当天每个小时独立的数据；【隔离符号 /##/】"`
	TodaySumCount  string         `json:"today_sum_count" gorm:"column:today_sum_count;type:varchar(1000);not null;default:'';comment:当天每个小时总和的数据；【隔离符号 /%%/】"`
	CreatedAt      time.Time      `json:"created_at" gorm:"column:created_at;type:datetime;comment:该条记录创建时间"`
	UpdatedAt      time.Time      `json:"updated_at" gorm:"column:updated_at;type:datetime;comment:该条记录修改时间"`
	DeletedAt      gorm.DeletedAt `json:"-" gorm:"index;type:datetime;comment:该条记录删除时间"`
}

func (CGGameAUEverydayWebsiteTrafficAndDownloadClickNum) TableName() string {
	return "cg_game_au_everyday_website_traffic_and_download_click_num"
}
